#include "proxy.h"

void RealSubject::Operation()
{
    std::cout << "RealSubject Operation" << std::endl;
}

void Proxy::Operation()
{
    if (subject_)
    {
        subject_->Operation();
    }
}

int main()
{
    RealSubject subject;
    Proxy proxy(&subject);

    proxy.Operation();
    return 0;
}
